package com.luu.game.controller;

import com.luu.game.data.dto.LevelExpDTO;
import com.luu.game.service.LevelExpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/level")
public class LevelExpController {

    @Autowired
    private LevelExpService levelExpService;

    @GetMapping("/add")
    public void insertLevel(){

        for (int i = 1; i <= 100; i++) {
            LevelExpDTO dto = new LevelExpDTO();
            dto.setLevelId(i);
            Double exp = Double.valueOf(i*i*i);
            dto.setExp(exp);
            // levelExpService.insertLevel(dto);
        }

    }

}
